<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    {% block title %}
    <title>首页</title>
    {% endblock %}
    
    <link href="/static/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/basic/css/demo.css" rel="stylesheet" type="text/css" />

    {% block css %}
    <link href="/static/home/css/hmstyle.css" rel="stylesheet" type="text/css"/>
    <link href="/static/home/css/skin.css" rel="stylesheet" type="text/css" />
    {% endblock %}

    <script src="/static/home/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="/static/home/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
    {% block js %}

    {% endblock %}

</head>

<body>
    <div class="hmtop">
        <!--顶部导航条 -->
        <div class="am-container header">
            <ul class="message-l">
                <div class="topMessage">
                    <div class="menu-hd">
                        
                        {% if request.session.vipUser %}
                        <a href="{% url 'home_logout' %}" target="_top">安全退出</a>
                        <span>{{ request.session.vipUser.username }}</span>
                        {% else %}
                        <a href="{% url 'home_login' %}?nextpath={{ request.path }}&args={{ request.GET.dict }}" target="_top" class="h">亲，请登录</a>
                        <a href="{% url 'home_register' %}" target="_top">免费注册</a>
                        {% endif %}
                    </div>
                </div>
            </ul>
            <ul class="message-r">
                <div class="topMessage home">
                    <div class="menu-hd"><a href="{% url 'home_index' %}" target="_top" class="h">商城首页</a></div>
                </div>
                <div class="topMessage my-shangcheng">
                    <div class="menu-hd MyShangcheng"><a href="{% url 'home_orderinfo' %}" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
                </div>
                <div class="topMessage mini-cart">
                    <div class="menu-hd"><a id="mc-menu-hd" href="{% url 'home_cartindex' %}" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
                </div>                
            </ul>
            </div>

            <!--悬浮搜索框-->

            <div class="nav white">
                <div class="logo"><img src="/static/home/images/logo.png" /></div>
                <div class="logoBig">
                    <li><img src="/static/home/images/logobig.png" /></li>
                </div>
                <div class="search-bar pr">
                    <a name="index_none_header_sysc" href="{% url 'home_index' %}">
                    <p style="font-size:50px;color:#f44661">欢迎登录---悦桔拉拉</p>
                    </a>
                </div>
            </div>

            <div class="clear"></div>
        </div>
          {% block con %}
            <div class="banner">
                <!--轮播 -->
                  <div class="am-slider am-slider-default scoll" data-am-flexslider id="demo-slider-0">
                      <ul class="am-slides">
                          <li class="banner1"><a href="introduction.html"><img src="/static/home/images/ad1.jpg" /></a></li>
                          <li class="banner2"><a><img src="/static/home/images/ad2.jpg" /></a></li>
                          <li class="banner3"><a><img src="/static/home/images/ad3.jpg" /></a></li>
                          <li class="banner4"><a><img src="/static/home/images/ad4.jpg" /></a></li>

                      </ul>
                  </div>
                  <div class="clear"></div>   
            </div>
            <div class="shopNav">
                <div class="slideall">
                    
                       <div class="long-title"><span class="all-goods">全部分类</span></div>
                       <div class="nav-cont">
                            <ul>
                                <li class="index"><a href="#">首页</a></li>
                               
                            </ul>                        
                        </div>                  
                                
                        <!--侧边导航 -->
                        <div id="nav" class="navfull">
                            <div class="area clearfix">
                                <div class="category-content" id="guide_2">
                                    
                                    <div class="category">
                                        <ul class="category-list" id="js_climit_li">
                                            {% for v in data %}
                                            <li class="appliance js_toggle relative first">
                                                <div class="category-info">
                                                    <h3 class="category-name b-category-name">
                                                        <i><img src="/static/home/images/cake.png"></i>
                                                        <a class="ml-22" title="{{ v.name }}">{{ v.name }}</a></h3>
                                                    <em>&gt;</em></div>
                                                <div class="menu-item menu-in top">
                                                <div class="area-in">
                                                    <div class="area-bg">
                                                        <div class="menu-srot">
                                                            <div class="sort-side">
                                                                {% for v2 in v.sub %}
                                                                <dl class="dl-sort">
                                                                    <dt><a href="{% url 'home_list' %}?cid={{ v2.id }}" title="{{ v2.name }}">{{ v2.name }}</a></dt>
                                                                    {% for v3 in v2.goods_set.all %}
                                                                    <dd><a title="{{ v3.title }}" href="{% url 'home_info'%}?gid={{ v3.id }}"><span>{{ v3.title }}</span></a></dd>
                                                                    {% endfor %} 
                                                                </dl>
                                                                {% endfor %}
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                             <b class="arrow"></b>
                                            }
                                        {% endfor %}
                                        </ul>
                                    </div>
                                </div>

                            </div>
                        </div>
                        
                        <!--轮播-->
                        
                        <script type="text/javascript">
                            (function() {
                                $('.am-slider').flexslider();
                            });
                            $(document).ready(function() {
                                $("li").hover(function() {
                                    $(".category-content .category-list li.first .menu-in").css("display", "none");
                                    $(".category-content .category-list li.first").removeClass("hover");
                                    $(this).addClass("hover");
                                    $(this).children("div.menu-in").css("display", "block")
                                }, function() {
                                    $(this).removeClass("hover")
                                    $(this).children("div.menu-in").css("display", "none")
                                });
                            })
                        </script>

                    <!--走马灯 -->
                    <!-- <div class="marqueen">
                        <span class="marqueen-title">商城头条</span>
                        <div class="demo">

                            <ul>
                                <li class="title-first"><a target="_blank" href="#">
                                    <img src="/static/home/images/TJ2.jpg"></img>
                                    <span>[特惠]</span>商城爆品1分秒                                
                                </a></li>
                                <li class="title-first"><a target="_blank" href="#">
                                    <span>[公告]</span>商城与广州市签署战略合作协议
                                     <img src="/static/home/images/TJ.jpg"></img>
                                     <p>XXXXXXXXXXXXXXXXXX</p>
                                </a></li>
                                
                        <div class="mod-vip">
                            <div class="m-baseinfo">
                                <a href="/static/home/person/index.html">
                                    <img src="/static/home/images/getAvatar.do.jpg">
                                </a>
                                <em>
                                    Hi,<span class="s-name">小叮当</span>
                                    <a href="#"><p>点击更多优惠活动</p></a>                                 
                                </em>
                            </div>
                            <div class="member-logout">
                                <a class="am-btn-warning btn" href="{% url 'home_login' %}">登录</a>
                                <a class="am-btn-warning btn" href="{% url 'home_register' %}">注册</a>
                            </div>
                            <div class="member-login">
                                <a href="#"><strong>0</strong>待收货</a>
                                <a href="#"><strong>0</strong>待发货</a>
                                <a href="#"><strong>0</strong>待付款</a>
                                <a href="#"><strong>0</strong>待评价</a>
                            </div>
                            <div class="clear"></div>   
                        </div>                                                                      
                                
                                <li><a target="_blank" href="#"><span>[特惠]</span>洋河年末大促，低至两件五折</a></li>
                                <li><a target="_blank" href="#"><span>[公告]</span>华北、华中部分地区配送延迟</a></li>
                                <li><a target="_blank" href="#"><span>[特惠]</span>家电狂欢千亿礼券 买1送1！</a></li>
                                
                            </ul>
                        <div class="advTip"><img src="/static/home/images/advTip.jpg"/></div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div> -->
                <script type="text/javascript">
                    if ($(window).width() < 640) {
                        function autoScroll(obj) {
                            $(obj).find("ul").animate({
                                marginTop: "-39px"
                            }, 500, function() {
                                $(this).css({
                                    marginTop: "0px"
                                }).find("li:first").appendTo(this);
                            })
                        }
                        $(function() {
                            setInterval('autoScroll(".demo")', 3000);
                        })
                    }
                </script>
            </div>
            <div class="shopMain" id="shopmain">

                <!--今日推荐 -->

                <div class="am-g am-g-fixed recommendation">
                    <div class="clock am-u-sm-3" ">
                        <img src="/static/home/images/2016.png "></img>
                        <p>今日<br>推荐</p>
                    </div>
                    <div class="am-u-sm-4 am-u-lg-3 ">
                        <div class="info ">
                            <h3>真的有鱼</h3>
                            <h4>开年福利篇</h4>
                        </div>
                        <div class="recommendationMain one">
                            <a href="{% url 'home_info' %}?gid=101"><img src="/static/home/images/tj.png "></img></a>
                        </div>
                    </div>                      
                    <div class="am-u-sm-4 am-u-lg-3 ">
                        <div class="info ">
                            <h3>囤货过冬</h3>
                            <h4>让爱早回家</h4>
                        </div>
                        <div class="recommendationMain two">
                            <a href="{% url 'home_info' %}?gid=5"><img src="/static/home/images/tj1.png "></img></a>
                        </div>
                    </div>
                    <div class="am-u-sm-4 am-u-lg-3 ">
                        <div class="info ">
                            <h3>浪漫情人节</h3>
                            <h4>甜甜蜜蜜</h4>
                        </div>
                        <div class="recommendationMain three">
                            <a href="{% url 'home_info' %}?gid=103"><img src="/static/home/images/tj2.png "></img></a>
                        </div>
                    </div>

                </div>
                <div class="clear "></div>
                <!--热门活动 -->

                <div class="am-container activity ">
                    <div class="shopTitle ">
                        <h4>活动</h4>
                        <h3>每期活动 优惠享不停 </h3>
                        <span class="more ">
                          <a href="{% url 'home_list' %}?cid=5">全部活动<i class="am-icon-angle-right" style="padding-left:10px ;" ></i></a>
                    </span>
                    </div>
                  <div class="am-g am-g-fixed ">
                    <div class="am-u-sm-3 ">
                        <div class="icon-sale one "></div>  
                            <h4>秒杀</h4>                         
                        <div class="activityMain ">
                            <a href="{% url 'home_list' %}?cid=5"><img src="/static/home/images/activity1.jpg "></img></a>
                        </div>
                        <div class="info ">
                            <h3>春节送礼优选</h3>
                        </div>                                                      
                    </div>
                    
                    <div class="am-u-sm-3 ">
                      <div class="icon-sale two "></div>    
                        <h4>特惠</h4>
                        <div class="activityMain ">
                            <a href="{% url 'home_list' %}?cid=8"><img src="/static/home/images/activity2.jpg "></img></a>
                        </div>
                        <div class="info ">
                            <h3>春节送礼优选</h3>                             
                        </div>                          
                    </div>                      
                    
                    <div class="am-u-sm-3 ">
                        <div class="icon-sale three "></div>
                        <h4>团购</h4>
                        <div class="activityMain ">
                            <a href="{% url 'home_list' %}?cid=6"><img src="/static/home/images/activity3.jpg "></img></a>
                        </div>
                        <div class="info ">
                            <h3>春节送礼优选</h3>
                        </div>                          
                    </div>                      

                    <div class="am-u-sm-3 last ">
                        <div class="icon-sale "></div>
                        <h4>超值</h4>
                        <div class="activityMain ">
                            <a href="{% url 'home_list' %}?cid=7"><img src="/static/home/images/activity.jpg "></img></a>
                        </div>
                        <div class="info ">
                            <h3>春节送礼优选</h3>
                        </div>                                                  
                    </div>

                  </div>
               </div>
                <div class="clear "></div>


             <div class="clear "></div>  
             </div>
          {% endblock %}
             


            <div class="footer ">
                <div class="footer-hd ">
                    <p>
                        <a href="# ">恒望科技</a>
                        <b>|</b>
                        <a href="# ">商城首页</a>
                        <b>|</b>
                        <a href="# ">支付宝</a>
                        <b>|</b>
                        <a href="# ">物流</a>
                    </p>
                </div>
                <div class="footer-bd ">
                    <p>
                        <a href="# ">关于恒望</a>
                        <a href="# ">合作伙伴</a>
                        <a href="# ">联系我们</a>
                        <a href="# ">网站地图</a>
                        <em>© 2015-2025 Hengwang.com 版权所有</em>
                    </p>
                </div>
            </div>

        <!-- </div> -->
    </div>
    <!--引导 -->
    <div class="navCir">
        <li class="active"><a href="home.html"><i class="am-icon-home "></i>首页</a></li>
        <li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
        <li><a href="{% url 'home_cartindex' %}"><i class="am-icon-shopping-basket"></i>购物车</a></li> 
        <li><a href="/static/home/person/index.html"><i class="am-icon-user"></i>我的</a></li>                  
    </div>


    <!--菜单 -->
    <div class=tip>
        <div id="sidebar">
            <div id="wrap">
                <div id="prof" class="item ">
                    <a href="# ">
                        <span class="setting "></span>
                    </a>
                    <div class="ibar_login_box status_login ">
                        {% if request.session.vipUser %}
                        <div class="avatar_box ">
                            <p class="avatar_imgbox "><img src="{{ user.pic_url|default:'/static/home/images/no-img_mid_.jpg'}}" width="135" /></p>
                            <ul class="user_info ">
                                <li>{{ request.session.vipUser.username }}</li>
                                
                            </ul>
                        </div>
                        <div class="login_btnbox ">
                            <a href="{% url 'home_orderinfo' %}" class="login_order ">我的订单</a>
                        </div>
                        <i class="icon_arrow_white "></i>
                        {% else %}
                        <div style="text-align: center;height: 100px;line-height: 100px; ">
                           <a style="display: inline-block;width: 100px;height: 150px;color:red;" href="{% url 'home_login' %}?nextpath={{ request.path }}&args={{ request.GET.dict }}" target="_top" class="h">请登录</a>
                       </div>
                       {% endif %}
                    </div>
                </div>
                <a href="{% url 'home_cartindex' %}">
                    <div id="shopCart " class="item ">
                        <span class="message "></span>
                        <br><br>
                        <!-- <p class="cart_num">0</p> -->
                    </div>
                </a>
  

                <div class="quick_toggle ">
                    <li class="qtitem ">
                        <a href="# "><span class="kfzx "></span></a>
                        <div class="mp_tooltip ">客服中心<i class="icon_arrow_right_black "></i></div>
                    </li>
                    <!--二维码 -->
                    <li class="qtitem ">
                        <a href="#none "><span class="mpbtn_qrcode "></span></a>
                        <div class="mp_qrcode " style="display:none; "><img src="/static/home/images/weixin_code_145.png " /><i class="icon_arrow_white "></i></div>
                    </li>
                    <li class="qtitem ">
                        <a href="#top " class="return_top "><span class="top "></span></a>
                    </li>
                </div>

                <!--回到顶部 -->
                <div id="quick_links_pop " class="quick_links_pop hide "></div>

            </div>
        </div>        
    </div>
    <script>
        window.jQuery || document.write('<script src="basic/js/jquery.min.js "><\/script>');
    </script>
    <script type="text/javascript " src="/static/home/basic/js/quick_links.js "></script>
</body>
</html>